package com.dy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dy.pojo.dto.DyUserDTO;
import com.dy.pojo.dto.DyUserRestDTO;
import com.dy.pojo.entity.DyUserEntity;
import com.sun.org.apache.xpath.internal.operations.Bool;

/**
 * @ClassName:
 * @Author: 仄言in
 * @Desctiption: (描述)
 * @Date: 2021/6/1 17:26
 * @Version 1.0 (版本)
 */
public interface DyUserService extends IService<DyUserEntity> {
    /**
     * 登录
     * @param dyUserDTO
     */
    void loginUser(DyUserDTO dyUserDTO);
    /**
     * 注册
     * @param dyUserRestDTO
     * @return boolean
     */
    boolean restUser(DyUserRestDTO dyUserRestDTO);

    /**
     * 查询当前登录用户的code
     * @param username
     * @return
     */
    String listcode(String username);
}
